package com.wj.jiangan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wj.jiangan.pojo.Order;
import com.wj.jiangan.pojo.vo.OrderVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author wj
 * @since 2019-11-05
 */
public interface OrderMapper extends BaseMapper<Order> {


    IPage<OrderVo> queryByPage(Page page,
                               @Param("ris") Integer ris,
                               @Param("pid") Integer pid,
                               @Param("eid") Integer eid,
                               @Param("cid") Integer cid);


    /**
     *
     * @param page
     * @param rid 订单号
     * @return
     */
    IPage<OrderVo> queryOrderDetailByPage(Page page, @Param("rid") Integer rid);

}
